package com.example.train.service;

import cn.hutool.core.lang.tree.Tree;
import com.example.train.model.SysPermission;

import java.util.List;

public interface SysPermissionService {


    int deleteByPrimaryKey(Long id);

    Integer insert(SysPermission record);

    int insertSelective(SysPermission record);

    List<SysPermission> selectByPrimaryKeys(List<Long> ids);

    SysPermission selectByName(String name);

    List<SysPermission> selectAll(List<Long> ids);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    List<Tree<Long>> getPermissionList();

}
